﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    class DeliveryRobots:Robot
    {
        private int hours;

        public int Hours {
            get { return this.hours; }
            set { this.hours = value; }
        }

        public DeliveryRobots(string name, RobotType type, int hours) : base(name, type) {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("机器名:{0},功能{1}",this.Name,this.hours);
        }
    }
}
